package com.zhongnan.demo6.queue;

import com.zhongnan.demo6.shengchanxiaofei.Desk;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) throws InterruptedException {

        ArrayBlockingQueue<String> abq = new ArrayBlockingQueue(1);
        Foodie f = new Foodie(abq);
        Cooker c = new Cooker(abq);
        f.start();
        c.start();

    }
}
